package com.ruoyi.ssh.mapper;

import java.util.List;
import com.ruoyi.ssh.domain.QuestionOption;
import org.apache.ibatis.annotations.Mapper;

/**
 * 题目选项Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Mapper
public interface QuestionOptionMapper 
{
    /**
     * 根据id查询题目选项
     *
     * @param id 题目选项主键
     * @return 题目选项
     */
    public QuestionOption selectQuestionOptionById(Integer id);

    /*
    * 根据题目ID查询选项
    *
    * @param questionId 题目ID
    * @return 题目选项
    */
    public QuestionOption selectQuestionOptionByQuestionId(Integer questionId);

    /*
    * 添加选项
    * */
    public int insertQuestionOption(QuestionOption questionOption);

    /*
    * 动态修改选项
    *
    * @param questionOption 题目选项
    * @return 结果
    */
    public int updateQuestionOption(QuestionOption questionOption);

    /*
    * 联表查询出题目和选项信息
    *
    * @param questionId 题目ID
    * @return 题目选项
    */
    public QuestionOption selectQuestionOptionWithQuestion(Integer questionId);
}
